package com.swas.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * patrol_task
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PatrolTask implements Serializable {
    private Integer id;

    private String taskno;

    private String taskname;

    private String tasktype;

    private Integer taskstatu;

    private String executor;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startdate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enddate;

    private Date dispatchtime;

    private String dispatcher;

    private String content;

    private Integer planid;

    private String remark;

    //任务巡检地点
    private List<PatrolPoint> patrolPointList;
}